using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter11
{
	/// <summary>
	/// Example05: Bowing Ball
	/// Estimate the magnitude of the angular momentum 
	/// of a bowling ball spining at 10 rev/s, as shown in 
	/// Figure 11.8. (Mass is 6 kg.)
	/// l_z = 2 kg m^2/s
	/// </summary>
	public class Example05
	{
		public Example05()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Mass m = new L.Mass();
			m.kg = 6.0;
			L.RigidBody ball = new L.RigidBody(m);
			L.Length r = new L.Length();
			r.m = 0.12;
			ball.SetSphere(r);
			L.AngularVelocity omega = new L.AngularVelocity();
			omega.Z = 10.0*2.0*Math.PI;
			L.AngularMomentum l = new L.AngularMomentum(ball.RigidBodyMomentOfInertia,omega);
			result += Convert.ToString(l.Z);
		}
	}
}
